# /usr/bin/python3
# -*- coding: utf-8 -*-
# @Time    : 2022/1/11 10:15
# @Author  : lt
# @Email   : lt@163.com
# @File    : xs_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from page.KHGL_page.Base_Page import BasePage
class Xs_Page(BasePage):
    # 定位新建线索
    addxiansuo_locator = (By.CSS_SELECTOR, 'body > div.container > div.row > div:nth-child(1) > div > a')
    #定位线索池按钮
    xiansuochi_locator = (By.CSS_SELECTOR, 'body > div.container > div.page-header > ul > li:nth-child(2) > a')

    def add_xiansuo(self):
        #点击新建线索
        self.driver.find_element(*self.addxiansuo_locator).click()
    def xiansuochi(self):
        #点击线索池按钮
        self.driver.find_element(*self.xiansuochi_locator).click()